﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PhanMemDoVui.BusinessObject
{
    [Serializable]
    public class Exam
    {
#region Attributes
        private int _ma;
        private int _score;
        private String _profile;
        private String _ended;
        private int _numEasy;
        private int _numMode;
        private int _numHard;
        private int _numVhar;
#endregion
#region Constructor
        public Exam()
        {
            _ma = 0;
            _score = 0;
            _profile = "";
            _ended = "No";
            _numEasy = 5;
            _numMode = 5;
            _numHard = 5;
            _numVhar = 5;
        }
#endregion
#region Constructor_Args
        public Exam(int Ma, int Score, String Profile, String Ended)
        {
            _ma = Ma;
            _score = Score;
            _profile = Profile;
            _ended = Ended;
        }
        public Exam(int Ma, int Score, String Ended, String Profile, int num_easy, int num_mode, int num_hard, int num_vhar)
        {
            _ma = Ma;
            _score = Score;
            _profile = Profile;
            _ended = Ended;
            _numEasy = num_easy;
            _numMode = num_mode;
            _numHard = num_hard;
            _numVhar = num_vhar;
        }
#endregion
#region Property
        public int Ma
        {
            get { return _ma; }
            set { _ma = value; }
        }
        public int Score
        {
            get { return _score; }
            set { _score = value; }
        }
        public String Profile
        {
            get { return _profile; }
            set { _profile = value; }
        }
        public String Ended
        {
            get { return _ended; }
            set { _ended = value; }
        }
        public int NumEasy
        {
            get { return _numEasy; }
            set { _numEasy = value; }
        }
        public int NumMode
        {
            get { return _numMode; }
            set { _numMode = value; }
        }
        public int NumHard
        {
            get { return _numHard; }
            set { _numHard = value; }
        }
        public int NumVhar
        {
            get { return _numVhar; }
            set { _numVhar = value; }
        }
#endregion
    }
}
